<?php
class twittica extends command {

	public function __construct(){
		$this->name = 'twittica';
		$this->public = true;
		$this->server = 'irc.freenode.net';
	}
	
	public function help(){
		return "Uso: !twittica USUARIO - Devuelve últimos twitts de USUARIO tanto de twitter como de identi.ca si existieran";
	}
	
	public function process($args){
		$user = explode( " ", $args, 1);
		$tt = new TwitterIdentica( $user[0] );
		$tt->getTimeline();
		$this->output = join("\n", $tt->out);	
		$tt = new TwitterIdentica( $user[0], true );
		$tt->getTimeline();
		$this->output .= "\n";
		$this->output .= join("\n", $tt->out);	
	}
}
?>
